package com.chhuang.uresource.bean;


import com.chhuang.core.bean.QueryBean;
import com.chhuang.uresource.po.UResource;

/**
* UResource QueryBean
* @author ChHuang
* @date Wed May 09 13:52:26 CST 2018
*/
public class UResourceQueryBean extends QueryBean<UResource>{
	private static final long serialVersionUID = 8076250411472278985L;
	private String resourceId;
	public String getResourceId(){
		return resourceId;
	}
	public void setResourceId(String resourceId){
		this.resourceId=resourceId;
	}
	private String resourceName;
	public String getResourceName(){
		return resourceName;
	}
	public void setResourceName(String resourceName){
		this.resourceName=resourceName;
	}
	private String resourceType;
	public String getResourceType(){
		return resourceType;
	}
	public void setResourceType(String resourceType){
		this.resourceType=resourceType;
	}
	private Long resourceLength;
	public Long getResourceLength(){
		return resourceLength;
	}
	public void setResourceLength(Long resourceLength){
		this.resourceLength=resourceLength;
	}
	private String resourceIntroduction;
	public String getResourceIntroduction(){
		return resourceIntroduction;
	}
	public void setResourceIntroduction(String resourceIntroduction){
		this.resourceIntroduction=resourceIntroduction;
	}
	private String searchKeyWords;
	public String getSearchKeyWords(){
		return searchKeyWords;
	}
	public void setSearchKeyWords(String searchKeyWords){
		this.searchKeyWords=searchKeyWords;
	}
	private String resourceAuthorId;
	public String getResourceAuthorId(){
		return resourceAuthorId;
	}
	public void setResourceAuthorId(String resourceAuthorId){
		this.resourceAuthorId=resourceAuthorId;
	}
	private String resourcePath;
	public String getResourcePath(){
		return resourcePath;
	}
	public void setResourcePath(String resourcePath){
		this.resourcePath=resourcePath;
	}
	private Integer pathType;
	public Integer getPathType(){
		return pathType;
	}
	public void setPathType(Integer pathType){
		this.pathType=pathType;
	}
	private Integer downloadAmount;
	public Integer getDownloadAmount(){
		return downloadAmount;
	}
	public void setDownloadAmount(Integer downloadAmount){
		this.downloadAmount=downloadAmount;
	}
	private Integer maxReadNum;
	public Integer getMaxReadNum(){
		return maxReadNum;
	}
	public void setMaxReadNum(Integer maxReadNum){
		this.maxReadNum=maxReadNum;
	}
	private String createTime;
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime=createTime;
	}
	private String modifyTime;
	public String getModifyTime(){
		return modifyTime;
	}
	public void setModifyTime(String modifyTime){
		this.modifyTime=modifyTime;
	}
	@Override
	public String fieldTransforColumn(String field) {
		if("resourceId".equals(field)){
			return "RESOURCE_ID";
		}else if("resourceName".equals(field)){
			return "RESOURCE_NAME";
		}else if("resourceType".equals(field)){
			return "RESOURCE_TYPE";
		}else if("resourceLength".equals(field)){
			return "RESOURCE_LENGTH";
		}else if("resourceIntroduction".equals(field)){
			return "RESOURCE_INTRODUCTION";
		}else if("searchKeyWords".equals(field)){
			return "SEARCH_KEY_WORDS";
		}else if("resourceAuthorId".equals(field)){
			return "RESOURCE_AUTHOR_ID";
		}else if("resourcePath".equals(field)){
			return "RESOURCE_PATH";
		}else if("pathType".equals(field)){
			return "PATH_TYPE";
		}else if("downloadAmount".equals(field)){
			return "DOWNLOAD_AMOUNT";
		}else if("maxReadNum".equals(field)){
			return "MAX_READ_NUM";
		}else if("createTime".equals(field)){
			return "CREATE_TIME";
		}else if("modifyTime".equals(field)){
			return "MODIFY_TIME";
		}else{
			return field;
		}
	}
	@Override
	public String columnTransforField(String column) {
		if("RESOURCE_ID".equals(column)){
			return "resourceId";
		}else if("RESOURCE_NAME".equals(column)){
			return "resourceName";
		}else if("RESOURCE_TYPE".equals(column)){
			return "resourceType";
		}else if("RESOURCE_LENGTH".equals(column)){
			return "resourceLength";
		}else if("RESOURCE_INTRODUCTION".equals(column)){
			return "resourceIntroduction";
		}else if("SEARCH_KEY_WORDS".equals(column)){
			return "searchKeyWords";
		}else if("RESOURCE_AUTHOR_ID".equals(column)){
			return "resourceAuthorId";
		}else if("RESOURCE_PATH".equals(column)){
			return "resourcePath";
		}else if("PATH_TYPE".equals(column)){
			return "pathType";
		}else if("DOWNLOAD_AMOUNT".equals(column)){
			return "downloadAmount";
		}else if("MAX_READ_NUM".equals(column)){
			return "maxReadNum";
		}else if("CREATE_TIME".equals(column)){
			return "createTime";
		}else if("MODIFY_TIME".equals(column)){
			return "modifyTime";
		}else{
			return column;
		}
	}
}